#ifndef CAMERAINTERFACE_H
#define CAMERAINTERFACE_H

#include "LFOSCommon.h"

class CameraInterface
{
public:

	//Default constructor
	CameraInterface();

	//setter and getter methods
	void SetTimeBetweenFrames(unsigned int milliseconds);
	unsigned int GetTimeBetweenFrames();

	//Captures one frame and returns a pointer to the image buffer
	unsigned char* CaptureFrame();

	//Sets the TimeBetweenFrames to time and initializes the camera
	//driver.  Returns true if successful, false otherwise.
	bool Initialize(unsigned int time);

private:
	unsigned char frameData[PIXELS];
	unsigned int timeBetweenFrames;
	unsigned int timeOfLastCapture;
	int fdCamera;
};

#endif
